package com.pan.behavioral.chain.utils;

import javax.swing.*;
import java.awt.image.BufferedImage;

public enum ShowUtils {

    INSTANCE;


    {

    }

    public void showImage(BufferedImage image) {
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(3);
        JLabel label = new JLabel(new ImageIcon(image));
        frame.add(label);
        frame.pack();
        frame.setVisible(true);

    }

}
